import React, { Component } from 'react';
import {Button, Text, View} from "react-native";


export default class ModalScreen extends Component {
    render() {
        return (
            <View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>
                <Text style={{ fontSize: 30 }}>这是一个模态屏幕!</Text>
                <Button
                    onPress={() => this.props.navigation.goBack()}
                    title="关闭"
                />
            </View>
        );
    }
}
